/*
** my_strcmp.c for  in /home/georgi_v/rendu/PSU_2013_minishell1/libs
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Wed Nov  6 16:25:44 2013 georgi_v
** Last update Fri Dec  6 19:42:03 2013 georgi_v
*/

#include "my.h"

int	my_strcmp(char *s1, char *s2)
{
  char	tmp;

  while (*s1 != '\0' || *s2 != '\0')
    {
      tmp = *s1 - *s2;
      if (tmp > 0)
	return (-1);
      if (tmp < 0)
	return (1);
      s1++;
      s2++;
    }
  return (0);
}
